<%@ include file="/common/taglibs.jsp"%>
<title>对话框演示页面</title>
<table style="width:800px" cellspacing="0" cellpadding="0" border="0" class="dataintable">
	<tr>
		<th width="400px;">对话框1：楔入HTML，带按钮，页面载入即显示</th>
		<td>
			<script type="text/javascript">
			function ok(){alert("执行ok")};
			function cancel(){dlgdialog1_close();};
			
			</script>
			<input type="button" value="打开" onclick="dlgdialog1_show()"/>
			<probiz:ui_dialog id="dialog1" width="640" height="400" title="对话框1" buttons="'ok':ok,'cancel':cancel">
				aaaaaaaaaaaaaaaaaaaa
			</probiz:ui_dialog>
			<script type="text/javascript">
			$j(document).ready(function(){
				dlgdialog1_show();
			});
			</script>
		</td>
	</tr>
	<tr>
		<th>对话框2：内容通过ajax获得，每次打开均通过ajax再load一次</th>
		<td>
			<input type="button" value="打开" onclick="dlgdialog2_show()"/>
			<probiz:ui_dialog id="dialog2" title="对话框2" width="300" height="300" url="${ctxPath}/sandbox/ui/dialogTestAjax.html?decorator=blank"/>
		</td>
	</tr>
	<tr>
		<th>对话框3：内容通过ajax获得，关闭后再次打开仍能保持上次情景</th>
		<td>
			<input type="button" value="打开" onclick="dlgdialog3_show()"/>
			<probiz:ui_dialog id="dialog3" title="对话框3" width="300" height="300" url="${ctxPath}/sandbox/ui/dialogTestAjax.html?decorator=blank" isKeepScene="true"/>
		</td>
	</tr>
</table>	


